package com.hyz.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author HGD
 * @date 2022/9/27 14:30
 */
@RestController
@RequestMapping("/server")
public class ServerController {
    @GetMapping("/hello")
    public String hello() {
        System.out.println("Get请求远程调用成功");
        return "hello";
    }

    @PostMapping("/postHello")
    public String postHello() {
        System.out.println("Post请求远程调用成功");
        return "postHello";
    }
}
